// 处理hello相关URL
let fn_hello = async(ctx, next) => {
    let name = ctx.params.name
        // ctx.response.body = `<h1>Hello, ${name}!</h1>`
    ctx.response.body = {
        code: 0,
        data: {
            welcomeMsg: `Hello, ${name}!`
        },
        msg: 'ok',
        next: true
    }
}

module.exports = {
    'GET /hello/:name': fn_hello
}